cc=arm-linux-gcc
# cc=gcc


# libc_path=/home/arte/work/driver/tiny4412/source/android-5.0.2/prebuilts/ndk/9/platforms/android-19/arch-arm/usr/lib/libc.so
jni_path=/usr/lib/jvm/java-7-openjdk-amd64/include/


# main:main.c
	# gcc -o main main.c -L. -lmyjni

# lib:mylib.c
	# gcc mylib.c -fPIC -shared -o libmyjni.so
	

lib:mylib.c
	$(cc) -c  mylib.c -o libmyjni.o

jni:native_jni.c
	$(cc) native_jni.c libmyjni.o -I $(jni_path) -nostdlib  -fPIC -shared -o libnative_jni.so


java:JniTest.java
	javac JniTest.java

clean:
	rm -f  main *.o *.so *.class
